<?php

namespace common\models\myhtsq;

use Yii;
use common\models\BaseModel;


/**
 * This is the model class for table "myscrm_contract_api_log".
 *
 * @property string $log_id
 * @property string $log_type
 * @property string $call_line
 * @property string $call_method
 * @property string $call_parametes
 * @property string $return_data
 * @property number $return_code
 * @property string $call_user
 * @property string $error_msg
 * @property string $created_by
 * @property string $modified_by
 * @property string $call_time
 * @property string $created_on
 * @property string $modified_on
 * @property string $maintain_remark

 */
class ContractApiLogModel extends BaseModel
{
	public $log_id;
	public $log_type;
    public $call_line;
	public $call_method;
	public $call_parametes;
	public $return_data;
	public $return_code;
	public $error_msg;
	public $call_user;
    public $created_by;
    public $modified_by;
    public $call_time;
    public $created_on;
    public $modified_on;
    public $maintain_remark;


    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_contract_api_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['log_id'], 'required'],
            [['return_code','call_line'], 'number'],
            [['created_on', 'modified_on'], 'safe'],
            [['log_id', 'log_type', 'call_user','created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'log_id' => '日志ID',
            'log_type' => '日志类型',
            'call_method' => '调用方法',
            'call_parametes' => '调用参数',
            'return_data' => '返回值',
            'return_code' => '返回代码',
            'error_msg' => '返回信息',
            'call_user' => '调用人',
            'created_by' => '创建人',
            'modified_by' => '修改人',
            'call_time' => '调用时间',
            'created_on' => '创建时间',
            'modified_on' => '修改时间',
            'maintain_remark' => '维护备注',
        ];
    }
    
}
